<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>

<form action="" method="post">

    <p>
        作者：<input type="text" name="name">
    </p>
    <p>
        著作：
        <select name="books" id="" multiple>

            {% for book in all_books %}
                <option value="{{ book.pk }}">{{ book.title }}</option>
            {% endfor %}


        </select>

    </p>
    <button>提交</button>

</form>


</body>
</html>